home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 23.zip / BS1 part 23 / Hisoft Basic v1.03 disk 2.adf / Data / writeaddr.bas < prev    next >
BASIC Source File  |  1988-12-02  |  384b  |  22 lines

  1. OPEN "AddressFile" FOR APPEND AS 1
  2.  
  3. Entry:
  4.   PRINT 
  5.   INPUT "Name";Nam$
  6.   INPUT "Address";Address$
  7.   INPUT "City";City$
  8.   INPUT "Phone";Phone$
  9.   PRINT#1,Nam$
  10.   PRINT#1,Address$
  11.   PRINT#1,City$
  12.   PRINT#1,Phone$
  13.   x=x+1
  14.   PRINT "Record"x" ("Nam$") stored."
  15.   PRINT "Add more records?"
  16.   INPUT "Y/N:";Ans$
  17.   IF UCASE$(Ans$)="Y" THEN Entry
  18.   
  19. CLOSE
  20. PRINT "File closed. Program ended."
  21.   
  22.